﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TamTreSoSinh.DBContext;

namespace TamTreSoSinh
{
    public partial class ContactPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadData();
        }

        private void LoadData()
        {
            DBTamTreEntities dbContext = new DBTamTreEntities();
            ContactInfo contactInfo = dbContext.ContactInfoes.FirstOrDefault();
            if (contactInfo == null)
            {
                return;
            }

            ltrContent.Text = contactInfo.ContactContent;
        }
    }
}